import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'

Vue.use(VueRouter)

const routes = [{
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/about',
    name: 'about',
    component: () => import('../views/AboutView.vue')
  },
  {
    path: '/nav1',
    name: 'nav1',
    component: () => import('../views/tabbarpage/nav1.vue'),
    meta: {
      showtabbar: true
    }
  },
  {
    path: '/nav2',
    name: 'nav2',
    component: () => import('../views/tabbarpage/nav2.vue'),
    meta: {
      showtabbar: true

    }
  },
  {
    path: '/nav3',
    name: 'nav3',
    component: () => import('../views/tabbarpage/nav3.vue'),
    meta: {
      showtabbar: true
    }
  },
  {
    path: '/nav4',
    name: 'nav4',
    component: () => import('../views/tabbarpage/nav4.vue')
  },
  {
    path: '/you',
    name: 'you',
    component: () => import('../views/keepalivedemo/You.vue')
  },
  {
    path: '/me',
    name: 'me',
    component: () => import('../views/keepalivedemo/Me.vue')
  },
]

const router = new VueRouter({
  routes
})

export default router